package cn.kmust.booth.portal.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author tedu.cn
 * @since 2020-08-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("booth")
public class Booth implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 位置信息
     */
    @TableField("local_info")
    private String localInfo;

    /**
     * 摊位号
     */
    @TableField("booth_number")
    private Integer boothNumber;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 摊主真实姓名
     */
    @TableField("real_name")
    private String realName;

    /**
     * 是否被申请 0代表未申请 1代表已申请
     */
    @TableField("flag")
    private Integer flag;

    /**
     * 经营范围
     */
    @TableField("business_scope")
    private String businessScope;

    /**
     * 许可证编号
     */
    @TableField("license_number")
    private String licenseNumber;

    /**
     * 缴费金额
     */
    @TableField("fees")
    private Double fees;

    /**
     * 摊位状态 1已缴费 2未缴费 3已到期
     */
    @TableField("booth_state")
    private Integer boothState;

    /**
     * 开始日期
     */
    @TableField("start_time")
    private LocalDate startTime;

    /**
     * 到期日期
     */
    @TableField("end_time")
    private LocalDate endTime;
}
